/*
 * @Date: 2023-12-28 15:33:48
 * @LastEditors: lyx
 * @LastEditTime: 2023-12-28 16:14:33
 * @FilePath: \mt-middleware-server\src\feishu\entities\feishu_tenant.entity.ts
 * @Description:
 */
import { ModelOptions, prop } from '@typegoose/typegoose';
import { IsNotEmpty } from 'class-validator';

@ModelOptions({ schemaOptions: { timestamps: true } })
export class Feishu_Tenant {
  @IsNotEmpty({ message: '请输入自建应用 appId' })
  @prop()
  appId: string;
  @IsNotEmpty({ message: '请输入自建应用 accessToken' })
  @prop()
  accessToken: string;
  @IsNotEmpty({ message: '请输入自建应用 accessToken 过期时间（秒）' })
  @prop()
  expire: number;
}
